<?php
   
    $con=mysql_connect("localhost","root","1234");
    mysql_query("set names utf8");
    mysql_select_db("sql");
    $oldname=$_GET["oldname"];
    $username1=$_GET["username1"];
    $job1=$_GET["job1"];
    $nyr1=$_GET["nyr1"];
    $xinshui1=$_GET["xinshui1"];
  

   $sql="update bumen set username='$username1',job='$job1',nyr='$nyr1',xinshui='$xinshui1' where username='$oldname'";
    $r=mysql_query($sql,$con); 
 
    if($r)
   {
   	include('update.html');
   }else{

   	include('saveupdate.php');

   }


    ?>